projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caab6ac
)
print-editor: Fix a critical
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 10 May 2020 16:53:37 +0000
(12:53 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 11 May 2020 12:15:55 +0000
(08:15 -0400)
GtkWindow is no longer a container, so don't call
gtk_container_add on it.
tests/print-editor.c
patch
|
blob
|
history
diff --git
a/tests/print-editor.c
b/tests/print-editor.c
index a0a8fde4ee38c755209c95a5cc62261a2d30985b..646f3fe93f4f23d6a98393de7a179eb07973f167 100644
(file)
--- a/
tests/print-editor.c
+++ b/
tests/print-editor.c
@@
-748,7
+748,7
@@
activate (GApplication *app)
update_title (GTK_WINDOW (main_window));
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
- gtk_
container_add (GTK_CONTAINER
(main_window), box);
+ gtk_
window_set_child (GTK_WINDOW
(main_window), box);
/* Create document */
sw = gtk_scrolled_window_new (NULL, NULL);